package com.ruoyi.lottery.mapper;

import java.util.List;
import com.ruoyi.lottery.domain.TbLottery;

/**
 * 抽奖Mapper接口
 * 
 * @author LiuWeiChen
 * @date 2025-08-01
 */
public interface TbLotteryMapper 
{
    /**
     * 查询抽奖
     * 
     * @param lotteryId 抽奖主键
     * @return 抽奖
     */
    public TbLottery selectTbLotteryByLotteryId(Long lotteryId);

    /**
     * 查询抽奖列表
     * 
     * @param tbLottery 抽奖
     * @return 抽奖集合
     */
    public List<TbLottery> selectTbLotteryList(TbLottery tbLottery);

    /**
     * 新增抽奖
     * 
     * @param tbLottery 抽奖
     * @return 结果
     */
    public int insertTbLottery(TbLottery tbLottery);

    /**
     * 修改抽奖
     * 
     * @param tbLottery 抽奖
     * @return 结果
     */
    public int updateTbLottery(TbLottery tbLottery);

    /**
     * 删除抽奖
     * 
     * @param lotteryId 抽奖主键
     * @return 结果
     */
    public int deleteTbLotteryByLotteryId(Long lotteryId);

    /**
     * 批量删除抽奖
     * 
     * @param lotteryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbLotteryByLotteryIds(Long[] lotteryIds);
}
